package net.csdra.libraryborrowing.domain.post;

import net.csdra.libraryborrowing.domain.EntityBase;
import net.csdra.libraryborrowing.domain.book.BookCopy;

import javax.persistence.*;
import java.util.List;

/**
 * Created by msf on 2017/9/29.
 * 快递单号
 */
@Entity
public class Post extends EntityBase {
    //快递编号
    @Column(unique = true)
    String emsId;


    //收货人
    @OneToOne
    ShippingAddress consignee;

    //发货人
    @OneToOne
    ShippingAddress sender;
    //备注
    String remark;

    public String getEmsId() {
        return emsId;
    }

    public void setEmsId(String emsId) {
        this.emsId = emsId;
    }



    public ShippingAddress getConsignee() {
        return consignee;
    }

    public void setConsignee(ShippingAddress consignee) {
        this.consignee = consignee;
    }

    public ShippingAddress getSender() {
        return sender;
    }

    public void setSender(ShippingAddress sender) {
        this.sender = sender;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
